STEP 6: If the user guesses wrong, the dragon reveals the next letter as a hint. We need to save those letters!

We'll create an empty variable as a placeholder to store a value that will change as our program runs.

  • Click LOGIC, go to and drag out String Variable. Drop it at the bottom of your program.
  • Change the name of the variable from my_var to revealed_letters.
  • Change the value to be empty quotes like this: "". (Make sure nothing is between the quotes!)

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)